ArcFM Responder Mobile Developer Guide
ToStruct(Byte[],Type,Int32) Method






An array of bytes.
The Type of object to be created. This type object must represent a structure.
The starting position within the buffer.
Returns a struct converted from the byte array.
Syntax
'Declaration
 
Public Overloads Shared Function ToStruct( _
   ByVal buffer() As System.Byte, _
   ByVal structureType As System.Type, _
   ByVal startIndex As System.Integer _
) As System.Object
'Usage
 
Dim buffer() As System.Byte
Dim structureType As System.Type
Dim startIndex As System.Integer
Dim value As System.Object
 
value = StructConverter.ToStruct(buffer, structureType, startIndex)
public static System.object ToStruct( 
   System.byte[] buffer,
   System.Type structureType,
   System.int startIndex
)
public function ToStruct( 
    buffer: System.Bytearray of;
    structureType: System.Type;
    startIndex: System.Integer
): System.TObject; static; 
public static function ToStruct( 
   buffer : System.byte[],
   structureType : System.Type,
   startIndex : System.int
) : System.Object;
public: static System.Object* ToStruct( 
   System.byte[]* buffer,
   System.Type* structureType,
   System.int startIndex
) 
public:
static System.Object^ ToStruct( 
   System.array<byte>^ buffer,
   System.Type^ structureType,
   System.int startIndex
) 

Parameters

buffer
An array of bytes.
structureType
The Type of object to be created. This type object must represent a structure.
startIndex
The starting position within the buffer.

Return Value

A struct represented by the contents of the byte array.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

StructConverter Class
StructConverter Members
Overload List

Send Feedback